<meta charset='utf-8' />



<body style='background:#ccc;'>
	<div id='indexSelectArea' style='display:none;position:fixed;top:100;width:100%;border:0px solid;background:#ccc;padding-bottom:30px;text-align:center'>
		<h3>地区选择</h3>
		<select id="CityChange_Province"></select>
		<select id="CityChange_City"></select>
		<select id="CityChange_County"></select>
		<button id='CityChange_ChangeBtn'>切换</button>
	</div>
	
	<div id='Notice'></div>
</body>

<script src='../Public/jquery.js'></script>
<script src='../Public/fun.js'></script>
<script>
var view = 1;
var openid;

Notice('加载中......');

setTimeout(function(){
	
    if(!sessionStorage.currentDomain){
    	location.href='../error.html?t=50001';
    	err
    }
	


    if(!openCity){
    	location.href='../error.html?t=50002';
    	err
    }
	if(view)C('currentDomain ：' + sessionStorage.currentDomain);
	if(view)C('openCity ：' + localStorage.openCity);

	_parseOpenCity(openCity,CityChange_Province,CityChange_City,CityChange_County,function(){
		$('#indexSelectArea').show();
		Notice();

		//点击切换按钮 
		CityChange_ChangeBtn.onclick = function(){
			var CountyInfo = CityChange_County.options[CityChange_County.selectedIndex].value;
			localStorage.store_currentSelectCountyInfo = CountyInfo;
			location.replace('login.html');
		}
	})
},2000);



//获取域名列表
_getDomainList(function(res){
  	randomDomain(res.domainList,1);	//随机域名
},0);


//获取已开通城市列表
_getCityList(function(cityData){
	openCity = cityData.openCity;
},0);



</script>
	